package com.company.utils;

import com.company.service.StartService;
import com.company.service.impl.Denglu;
import com.company.service.impl.StartServiceplus;
import com.company.service.impl.Xiaoshuo;
import com.company.service.impl.Zhuce;

public class ServiceFactory {
    //返回业务接口的实现类对象
   // public StartService getBean(){
    //    return new StartServiceplus();
    //}

    public static StartService getbone(String key){

        if("start".equals(key)){
            return new StartServiceplus();
        }else  if("dengl".equals(key)){
            return new Denglu();
        }else  if("zhuc".equals(key)){
            return new Zhuce();
        }else  if("xiaos".equals(key)){
            return new Xiaoshuo();
        }
        return null;
    }


}
